﻿@{
    ViewBag.Title = "DemoteManager";
}

<h2>Demote Manager</h2>

<!-- This page allows you to demote a data manager and then then add a new user as one
    so we need to show a list of all users that are in the project that are applicable for promotoion
   they are selected and then the thing is shcnaged in the database-->

<!--so this page needs to come up and have a box that says, select user to promote              -->

You are demoting @ViewBag.userInfoF @ViewBag.userInfoL;

<h3>Please Select a User to Promote</h3>


<form action="/MyProjects/performDemote" method="post">
    <table align="center">
        <tr>
            <td>Select User: </td>
            <td>
                <select name="selectDmUser">

                    @foreach (var loopvar in ViewBag.UsersInProj)
                    {
                        <option value="@loopvar.UserID"> @loopvar.strFirstName @loopvar.strLastName </option>

                    }


                </select>
            </td>
            <td><input type="hidden" value="@ViewBag.Projectid" name="dmprojID"></td>
              <td><input type="hidden" value="@ViewBag.userID" name="dmdmID"> </td>
            <td><input type="submit" value="Submit" /></td>
        </tr>
    </table>


</form>
